home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Misc / AnimTester / Source / AnimView.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  1.2 KB  |  49 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "GameView.h"
  5.  
  6. // BLOCK_SIZE and IMAGENAME shouldn't be hardcoded.  I should move them
  7. // into the interface for the user to control.
  8. #define BLOCK_SIZE 32.0
  9.  
  10. #define STILL    0
  11. #define M_UP    1
  12. #define M_DOWN    2
  13. #define M_LEFT    3
  14. #define M_RIGHT    4
  15.  
  16. #define GODIR        [[dirButtons selectedCell] tag]
  17. #define GOUP        (direction == M_UP)
  18. #define GODOWN        (direction == M_DOWN)
  19. #define GOLEFT        (direction == M_LEFT)
  20. #define GORIGHT        (direction == M_RIGHT)
  21. #define MOVEINC        ([distText intValue])
  22. #define UPDATEFREQ    ([freqSlider intValue])
  23. #define NUM_FRAMES    ([[framesToShow selectedCell] tag]+1)
  24. #define SERIES        ([[seriesButtons selectedCell] tag])
  25. #define IMAGENAME    "Player.tiff"
  26.  
  27. @interface AnimView:GameView
  28. {
  29.     id runner;
  30.     id seriesButtons;
  31.     id freqSlider;
  32.     id framesToShow;
  33.     id distSlider;
  34.     id distText;
  35.     id dirButtons;
  36.     
  37.     int frameShown;
  38.     NXPoint    position;
  39. }
  40.  
  41. - initFrame:(const NXRect *)frm;    // initialize instance
  42. - loadPix;                // gameBrain calls this from appDidInit
  43. - autoUpdate:sender;    // sent by timer
  44. - drawSelf:(NXRect *)rects :(int)rectCount;  //used by internals for speed
  45. - updateSelf:(NXRect *)rects :(int)rectCount;  //used by internals for speed
  46. - changeDist:sender;
  47.  
  48. @end
  49.